package com.mall.payment.service;

import com.mall.common.page.PageData;
import com.mall.common.service.CrudService;
import com.mall.payment.entity.PaymentEntity;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.Map;

/**
 * @author: 谢君臣
 * @Date: 2022/6/24-14:51
 * @version: 1.0
 * @function:
 */

public interface PaymentService  extends CrudService<PaymentEntity, PaymentEntity> {

    PageData<PaymentEntity> findAll(Map<String, Object> param);

    PaymentEntity getPaymentByTransactionId(String transactionId);

    void updateStatus(PaymentEntity payment);

}
